#tipsModal .modal-content {
    background: rgba(18, 18, 24, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    max-width: 900px;
    width: 95%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#tipsModal .modal-header {
    background: transparent;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#tipsModal .modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

#tipsModal .modal-title i {
    color: #fbbf24;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.4));
}

#tipsModal .modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

#tipsModal .modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: rotate(90deg);
}

.tips-tabs-container {
    padding: 20px 32px 0;
    background: transparent;
}

.tips-tabs {
    display: flex;
    gap: 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 16px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tips-tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.tips-tab-btn i {
    font-size: 16px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.tips-tab-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.03);
}

.tips-tab-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tips-tab-btn.active[data-tab="story"] {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.tips-tab-btn.active[data-tab="girls"] {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(219, 39, 119, 0.2));
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.tips-tab-btn.active i {
    transform: scale(1.1);
    opacity: 1;
}

#tipsModal .modal-body {
    padding: 24px 32px;
    overflow-y: auto;
    height: 100%;
}

#tipsModal .modal-body::-webkit-scrollbar {
    width: 6px;
}

#tipsModal .modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

#tipsModal .modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#tipsModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tips-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tip-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.tip-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.tip-card-header {
    padding: 16px 20px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.03), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 16px;
}

.tip-icon-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.tip-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tip-title-group {
    flex: 1;
}

.tip-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.tip-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.tip-progress-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    width: 100%;
}

.tip-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.tip-progress-bar.girls {
    background: linear-gradient(90deg, #ec4899, #db2777);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.3);
}

.tip-steps-container {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tip-step {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 14px;
    border-left: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.tip-step.current {
    background: rgba(251, 191, 36, 0.05);
    border-left-color: #fbbf24;
}

.tip-step.current.girls-step {
    background: rgba(236, 72, 153, 0.05);
    border-left-color: #ec4899;
}

.tip-step.completed {
    background: rgba(16, 185, 129, 0.05);
    border-left-color: #10b981;
    opacity: 0.7;
}

.tip-section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 8px;
    margin-bottom: 6px;
}

.tip-section-mainstory {
    color: rgba(255, 255, 255, 0.85);
}

.tip-section-sidequest {
    color: rgba(251, 191, 36, 0.9);
}

.tip-section-phaseoverview {
    color: rgba(192, 132, 252, 0.9);
}

.step-sidequest-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(251, 191, 36, 0.9);
    margin-bottom: 6px;
}

.tip-step.current.girls-step .step-sidequest-label {
    color: rgba(236, 72, 153, 0.9);
}

.step-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.step-status-icon {
    font-size: 14px;
    margin-top: 3px;
}

.tip-step.current .step-status-icon {
    color: #fbbf24;
    animation: pulse 2s infinite;
}

.tip-step.current.girls-step .step-status-icon {
    color: #ec4899;
}

.tip-step.completed .step-status-icon {
    color: #10b981;
}

.tip-step.locked .step-status-icon {
    color: rgba(255, 255, 255, 0.3);
}

.step-name {
    font-size: 15px;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.4;
    flex: 1;
}

.tip-step.completed .step-name {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.5);
}

.step-details {
    margin-left: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.detail-row i {
    font-size: 12px;
    width: 14px;
    text-align: center;
    margin-top: 3px;
    opacity: 0.7;
}

.detail-row .highlight {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.empty-tips {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.empty-tips i {
    font-size: 48px;
    opacity: 0.3;
}

.empty-tips p {
    font-size: 14px;
}

.girls-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.girl-modern-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 3/4;
}

.girl-modern-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(236, 72, 153, 0.2);
    border-color: rgba(236, 72, 153, 0.3);
}

.girl-card-bg-wrapper {
    position: absolute;
    inset: 0;
}

.girl-card-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.girl-modern-card:hover .girl-card-bg-img {
    opacity: 0.9;
}

.girl-card-info-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    padding: 20px;
}

.girl-card-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.girl-card-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.girl-card-progress-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.4);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.girl-card-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.girl-stat-pill {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.girl-stat-pill i {
    opacity: 0.9;
}

.girl-card-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

.girl-card-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ec4899, #db2777);
    border-radius: 3px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.4);
}

.modern-diary-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 0;
}

.modern-diary-header-card {
    position: relative;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.modern-diary-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.modern-diary-header-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.modern-diary-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    margin-right: 20px;
}

.modern-diary-info {
    flex: 1;
    min-width: 0;
}

.modern-diary-name {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.modern-diary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.modern-diary-badge {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(236, 72, 153, 0.25);
    border: 1px solid rgba(236, 72, 153, 0.4);
    padding: 8px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modern-diary-badge i {
    color: #ec4899;
}

.modern-diary-content {
    flex: 1;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 24px;
    min-height: 0;
}

.modern-diary-sidebar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modern-diary-bio-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bio-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(236, 72, 153, 0.9);
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bio-text {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
}

.modern-diary-timeline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-progress {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
}

.modern-step-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    display: flex;
    gap: 16px;
    margin-bottom: 4px;
}

.modern-step-card.completed {
    background: rgba(16, 185, 129, 0.05);
    border-left-color: #10b981;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.modern-step-card.current {
    background: linear-gradient(to right, rgba(236, 72, 153, 0.1), transparent);
    border-left-color: #ec4899;
    border-bottom: 1px solid rgba(236, 72, 153, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modern-step-card.locked {
    opacity: 0.5;
    background: transparent;
    border-left-color: rgba(255, 255, 255, 0.1);
}

.step-status-indicator {
    padding-top: 2px;
}

.step-status-indicator i {
    font-size: 20px;
}

.modern-step-card.completed i {
    color: #10b981;
}

.modern-step-card.current i {
    color: #ec4899;
    filter: drop-shadow(0 0 5px rgba(236, 72, 153, 0.5));
}

.modern-step-card.locked i {
    color: rgba(255, 255, 255, 0.2);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.4;
}

.modern-step-card.completed .step-title {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
}

.step-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.modern-btn-back {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern-btn-back:hover {
    background: #ec4899;
    transform: scale(1.1);
}